//
//  StatusItemPopup.h
//  StatusItemPopup
//
//  Created by Alexander Schuch on 06/03/13.
//  Copyright (c) 2013 Alexander Schuch. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface ZTPopup : NSView

@property(assign, nonatomic) BOOL animated;


/**
 Popovers may have one of several predefined appearances.
 You may specify the appearance of a popover using the constants defined in NSPopoverAppearance. The default appearance is NSPopoverAppearanceMinimal.
 */
@property(nonatomic, strong, readonly) NSPopover *popover;

// init
- (id)initWithViewController:(NSViewController *)controller;

// show / hide popover
- (void)showPopover:(id)sender;
- (void)hidePopover;

// view size
- (void)setContentSize:(CGSize)size;

@end
